package com.muyu.danmo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.muyu.danmo.mapper.DanmoPrintingTypeRelationMapper;
import com.muyu.danmo.domain.DanmoPrintingTypeRelation;
import com.muyu.danmo.service.IDanmoPrintingTypeRelationService;

/**
 * 出版印刷与类型关联Service业务层处理
 * 
 * @author yangle
 * @date 2024-10-15
 */
@Service
public class DanmoPrintingTypeRelationServiceImpl implements IDanmoPrintingTypeRelationService 
{
    @Autowired
    private DanmoPrintingTypeRelationMapper danmoPrintingTypeRelationMapper;

    /**
     * 查询出版印刷与类型关联
     * 
     * @param id 出版印刷与类型关联主键
     * @return 出版印刷与类型关联
     */
    @Override
    public DanmoPrintingTypeRelation selectDanmoPrintingTypeRelationById(Long id)
    {
        return danmoPrintingTypeRelationMapper.selectDanmoPrintingTypeRelationById(id);
    }

    /**
     * 查询出版印刷与类型关联列表
     * 
     * @param danmoPrintingTypeRelation 出版印刷与类型关联
     * @return 出版印刷与类型关联
     */
    @Override
    public List<DanmoPrintingTypeRelation> selectDanmoPrintingTypeRelationList(DanmoPrintingTypeRelation danmoPrintingTypeRelation)
    {
        return danmoPrintingTypeRelationMapper.selectDanmoPrintingTypeRelationList(danmoPrintingTypeRelation);
    }

    /**
     * 新增出版印刷与类型关联
     * 
     * @param danmoPrintingTypeRelation 出版印刷与类型关联
     * @return 结果
     */
    @Override
    public int insertDanmoPrintingTypeRelation(DanmoPrintingTypeRelation danmoPrintingTypeRelation)
    {
        return danmoPrintingTypeRelationMapper.insertDanmoPrintingTypeRelation(danmoPrintingTypeRelation);
    }

    /**
     * 修改出版印刷与类型关联
     * 
     * @param danmoPrintingTypeRelation 出版印刷与类型关联
     * @return 结果
     */
    @Override
    public int updateDanmoPrintingTypeRelation(DanmoPrintingTypeRelation danmoPrintingTypeRelation)
    {
        return danmoPrintingTypeRelationMapper.updateDanmoPrintingTypeRelation(danmoPrintingTypeRelation);
    }

    /**
     * 批量删除出版印刷与类型关联
     * 
     * @param ids 需要删除的出版印刷与类型关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingTypeRelationByIds(Long[] ids)
    {
        return danmoPrintingTypeRelationMapper.deleteDanmoPrintingTypeRelationByIds(ids);
    }

    /**
     * 删除出版印刷与类型关联信息
     * 
     * @param id 出版印刷与类型关联主键
     * @return 结果
     */
    @Override
    public int deleteDanmoPrintingTypeRelationById(Long id)
    {
        return danmoPrintingTypeRelationMapper.deleteDanmoPrintingTypeRelationById(id);
    }
}
